using System;
using EPiServer.Common.Logging;

namespace EPiAbstractions.Common.Logging
{
    public class ActivityLogHandlerFacade : IActivityLogHandlerFacade
    {
        private static ActivityLogHandlerFacade _instance;

        public static ActivityLogHandlerFacade Instance
        {
            get
            {
                if (_instance == null)
                    _instance = new ActivityLogHandlerFacade();

                return _instance;
            }

            set { _instance = value; }
        }

        #region IActivityLogHandlerFacade Members

        public virtual IActivityLog GetActivityLog(Int32 id)
        {
            return ActivityLogHandler.GetActivityLog(id);
        }

        public virtual ActivityLogCollection GetLogEntries(ILoggableEntity entity)
        {
            return ActivityLogHandler.GetLogEntries(entity);
        }

        #endregion
    }
}